package test;

import com.cleamy.demo.pojo.Orders;
import com.cleamy.demo.pojo.Person;
import com.cleamy.demo.utils.MybatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

public class OrdersTEst {

    @Test
    public void personFindTest() {
        SqlSession sqlSession = MybatisUtil.getSqlSessionFactory().openSession(true);
        Orders o = sqlSession.selectOne("com.cleamy.demo.mapper.OrdersMapper.findOrderWithProduct", 2);
        System.out.println(o);
    }
}
